package top.csjss.hospital.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import top.csjss.hospital.entity.RegisteredType;
import top.csjss.hospital.entity.RegisteredTypeExample;

public interface RegisteredTypeMapper {
    long countByExample(RegisteredTypeExample example);

    int deleteByExample(RegisteredTypeExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(RegisteredType record);

    int insertSelective(RegisteredType record);

    List<RegisteredType> selectByExample(RegisteredTypeExample example);

    RegisteredType selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") RegisteredType record, @Param("example") RegisteredTypeExample example);

    int updateByExample(@Param("record") RegisteredType record, @Param("example") RegisteredTypeExample example);

    int updateByPrimaryKeySelective(RegisteredType record);

    int updateByPrimaryKey(RegisteredType record);

    /**
     * 查询挂号费
     * @param registeredId
     * @return
     */
    Integer findPriceByRegisteredId(Integer registeredId);
}
